package com.powernode.feign.sentinel;

/**
 * @version 1.0
 * @Date 2024/8/22 17:01
 * @Author 付~~~
 */

import com.powernode.domain.Sku;
import com.powernode.feign.OrderProdFeign;
import com.powernode.model.ChangeStock;
import com.powernode.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 订单业务模块调用商品业务模块的feign接口熔断处理
 */
@Component
@Slf4j
public class OrderProdFeignSentinel implements OrderProdFeign {
    @Override
    public Result<List<Sku>> getSkuListBySkuIds(List<Long> skuIds) {
        log.error("远程调用失败：根据商品skuid集合查询商品sku对象集合失败");
        return null;
    }

    @Override
    public Result<Boolean> changeProdAndSkuStock(ChangeStock changeStock) {
        log.error("远程调用失败：修改商品prod和sku的库存数量，订单调用商品");
        return null;
    }
}
